﻿@model viBook.Models.RequireEmailModel

@{
    ViewBag.Title = "Reactivate your account";
}

<link href="@Url.Content("~/Content/jquery.realperson.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.realperson.js")" type="text/javascript"></script>
<div id="main">
<div class="col-60 session-form">
<h2 class="section">Re-activate account</h2>
@using (Html.BeginForm("Reactivate", "Account", FormMethod.Post, new { @class = "gen-form with-messages" }))
{
    <div class="form-field">
        <div class="form-important">Enter your email address to receive new activation link</div>
        <fieldset>
            @Html.LabelFor(model => model.Email)
            @Html.TextBoxFor(model => model.Email, new { @class = "form-text" })
        </fieldset>
        <p class="message">
            @Html.ValidationMessageFor(model => model.Email)
        </p>
    </div>   
    <div class="form-field realperson-regen">
        <fieldset>
            @Html.LabelFor(m => m.RealPerson)
            @Html.TextBoxFor(m => m.RealPerson, new { @class = "form-text" })
            <p class="message">@Html.ValidationMessageFor(m => m.RealPerson)</p>
            <div id="defaultReal">
            </div>
        </fieldset>
    </div>
    <div class="form-btns">
        <input type="submit" class="form-sub" value="Send" />
        <a class="form-btn" href="@Url.Action("Index","Home")">Cancel</a>
    </div>
    
}
</div>
</div>
<script type="text/javascript">
    $(function () {
        $('#defaultReal').realperson({
            length: 6,
            includeNumbers: true,
            hashName: 'realHash'
        });
    });
</script>